package action.creditmanage;

import java.util.List;

import core.action.BaseAction;

import service.creditmanage.CreditManageService;

public class CreditInterestAction extends BaseAction{
	private CreditManageService creditManageService;
	private List contractList;
	private Integer id;
	public String FLAG;
	private String type;
	
	public String execute(){
		return "success";
	}
	
	public String doing(){
		contractList=creditManageService.getCreditInterestList();
		return "success";
	}
	
	public String done(){
		contractList=creditManageService.getInterestDoneRecord();
		super.successResultValue="/WEB-INF/content/creditmanage/interestdonelist.jsp";
		return "function";
	}
	
	public String change(){
		creditManageService.changeState(id,"interest",type);
		MessageJump("确认成功!","creditInterest!doing");	
		return "message";
	}
	public String printSure(){
		creditManageService.changePrintDate(id,"interest");
		MessageJump("打印确认成功!","creditInterest!doing");	
		return "message";
	}
	public CreditManageService getCreditManageService() {
		return creditManageService;
	}

	public void setCreditManageService(CreditManageService creditManageService) {
		this.creditManageService = creditManageService;
	}

	public List getContractList() {
		return contractList;
	}

	public void setContractList(List contractList) {
		this.contractList = contractList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
